package cn.itsource.ticket.runnable;

/**
 *	测试卖票案例
 */
public class TicketThreadTest {

	public static void main(String[] args) {
		//创建业务类对象
		TicketRunnableImpl ticket = new TicketRunnableImpl();
		
		//创建卖票线程对象，将业务类对象传入：苍苍
		Thread cangCang = new Thread(ticket,"苍苍");
		//创建卖票线程对象，将业务类对象传入：结依
		Thread jieYi = new Thread(ticket,"结依");
		//创建卖票线程对象，将业务类对象传入：鹰鹰
		Thread yingYing = new Thread(ticket,"鹰鹰");
		
		//启动线程
		cangCang.start();
		
		jieYi.start();
		yingYing.start();
		
	}

}
